﻿using System;
using System.Collections.Generic;
using System.Linq;
using CID.Domain.Development;
using CID.Support.Exceptions;

namespace CID.Execution.Support.Exceptions
{
    [Serializable]
    public class MissingVersionDeploymentPackageException : BaseException
    {
        public MissingVersionDeploymentPackageException(IEnumerable<IVersion> versions) 
            : base(String.Format("The following versions are missing their deployment package: {0}", String.Join(Environment.NewLine, versions.Select( x => x.GetFullName() ))))
        { 
        }
    }
}
